<?php
    include "base.php";
    $type = $_GET['type'];
    $res = $conn->query("SELECT * FROM `houses` WHERE `type`=$type");
    $arr = array();
    
    echo json_encode($row = mysqli_fetch_assoc($res));

?>